<?php
	include_once("inc/conn.php");
	include_once("inc/function.php"); 
	include_once("heheadmin/inc/config.php"); 

	$sql = "SELECT  u.id,u.qq,a.agent_name FROM users u,agent a 
	WHERE  u.id=a.uid AND a.state=1 AND a.is_recommend=1 AND u.isagent=1 
	ORDER BY u.id asc 
	LIMIT 25;";
	$query = $db->query($sql);
	$data=array();
	while($rs=$db->fetch_array($query)){
		$data[]=$rs;
	}
	//var_dump($data);exit;
	
?>
<!Doctype html>
<html lang="zh-cn">
<head>
<title>保时捷28,蛋蛋28,加拿大28,幸运28,PC蛋蛋,<?php echo $web_name ;?></title>
<?php 
    require 'public/title.inc.php';
?>
<link rel="stylesheet" type="text/css" href="style/merchants.css" />
<style type="text/css">
	body {font-family: "微软雅黑";background: #2b2b2b;}
	#merchants {background: #2b2b2b;margin: 10px auto;margin-bottom: 0px;}
	.panel {border: none;border-radius: inherit;border-color: #fff;background: #4a4a4a;}
	.container{min-height: 680px;margin-top: 103px;background: #4a4a4a;}
	.container img{width: 100%;}

</style>
</head>
<? include_once("top2.php");?>
<div id="merchants">
	<div class="container">
		<?php
			$sql = "select * from yj_longtext where yj_key = 'cooperation'";
			$query = $db->query($sql);
			$res = $db->fetch_array($query);
			echo $res['yj_value'];
		?>
	</div>	
</div>
<? include_once("yj_footer.php"); ?>
</body>
</html>
